package com.xyq.job.domain.message;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xyq.common.core.domain.BaseEntity;
import lombok.Data;

@Data
@TableName("tb_message")
public class Message extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long messageId ;

    private Long messageTextId ; // 消息内容id

    private Long sendId ; // 发送人id
    private Long receiveId ; // 接收人


}
